.class Lcom/waiqin365/base/login/dq;
.super Landroid/os/Handler;


# instance fields
.field private a:Ljava/lang/ref/WeakReference;


# direct methods
.method public constructor <init>(Lcom/waiqin365/base/login/OtherLoginActivity;)V
    .locals 1

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    new-instance v0, Ljava/lang/ref/WeakReference;

    invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    iput-object v0, p0, Lcom/waiqin365/base/login/dq;->a:Ljava/lang/ref/WeakReference;

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 8

    const/4 v3, 0x0

    const/4 v1, 0x1

    invoke-super {p0, p1}, Landroid/os/Handler;->handleMessage(Landroid/os/Message;)V

    iget-object v0, p0, Lcom/waiqin365/base/login/dq;->a:Ljava/lang/ref/WeakReference;

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/waiqin365/base/login/OtherLoginActivity;

    if-nez v2, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    iget v0, p1, Landroid/os/Message;->what:I

    sparse-switch v0, :sswitch_data_0

    goto :goto_0

    :sswitch_0
    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    move-object v4, v0

    check-cast v4, Lcom/waiqin365/base/login/b/a/ao;

    invoke-virtual {v4}, Lcom/waiqin365/base/login/b/a/ao;->b()Z

    move-result v0

    if-eqz v0, :cond_6

    invoke-static {}, Lcom/fiberhome/gaea/client/c/b;->b()Lcom/fiberhome/gaea/client/c/b;

    move-result-object v0

    iget-object v5, v4, Lcom/waiqin365/base/login/b/a/ao;->h:Lcom/waiqin365/base/login/c/h;

    iget-object v5, v5, Lcom/waiqin365/base/login/c/h;->h:Ljava/lang/String;

    iput-object v5, v0, Lcom/fiberhome/gaea/client/c/b;->r:Ljava/lang/String;

    invoke-static {}, Lcom/fiberhome/gaea/client/c/b;->b()Lcom/fiberhome/gaea/client/c/b;

    move-result-object v0

    iget-object v5, v4, Lcom/waiqin365/base/login/b/a/ao;->h:Lcom/waiqin365/base/login/c/h;

    iget-object v5, v5, Lcom/waiqin365/base/login/c/h;->i:Ljava/lang/String;

    iput-object v5, v0, Lcom/fiberhome/gaea/client/c/b;->s:Ljava/lang/String;

    invoke-static {}, Lcom/fiberhome/gaea/client/c/b;->b()Lcom/fiberhome/gaea/client/c/b;

    move-result-object v0

    iget-object v5, v4, Lcom/waiqin365/base/login/b/a/ao;->h:Lcom/waiqin365/base/login/c/h;

    iget-object v5, v5, Lcom/waiqin365/base/login/c/h;->d:Ljava/lang/String;

    iput-object v5, v0, Lcom/fiberhome/gaea/client/c/b;->t:Ljava/lang/String;

    const-string/jumbo v0, "0"

    iget-object v5, v4, Lcom/waiqin365/base/login/b/a/ao;->c:Ljava/lang/String;

    invoke-virtual {v0, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_2

    invoke-virtual {v2}, Lcom/waiqin365/base/login/OtherLoginActivity;->dismissProgressDialog()V

    invoke-static {v2}, Lcom/waiqin365/base/login/OtherLoginActivity;->a(Lcom/waiqin365/base/login/OtherLoginActivity;)Lcom/waiqin365/compons/view/c;

    move-result-object v0

    iget-object v1, v4, Lcom/waiqin365/base/login/b/a/ao;->e:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/waiqin365/compons/view/c;->a(Ljava/lang/String;)V

    invoke-static {v2}, Lcom/waiqin365/base/login/OtherLoginActivity;->a(Lcom/waiqin365/base/login/OtherLoginActivity;)Lcom/waiqin365/compons/view/c;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/compons/view/c;->show()V

    goto :goto_0

    :cond_2
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    new-instance v5, Lcom/waiqin365/base/db/keyvalue/e;

    const-string/jumbo v6, "_loginCompany"

    invoke-static {v2}, Lcom/waiqin365/base/login/OtherLoginActivity;->e(Lcom/waiqin365/base/login/OtherLoginActivity;)Ljava/lang/String;

    move-result-object v7

    invoke-direct {v5, v6, v7}, Lcom/waiqin365/base/db/keyvalue/e;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    invoke-virtual {v0, v5}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    new-instance v5, Lcom/waiqin365/base/db/keyvalue/e;

    const-string/jumbo v6, "_loginAccount"

    invoke-static {v2}, Lcom/waiqin365/base/login/OtherLoginActivity;->f(Lcom/waiqin365/base/login/OtherLoginActivity;)Ljava/lang/String;

    move-result-object v7

    invoke-direct {v5, v6, v7}, Lcom/waiqin365/base/db/keyvalue/e;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    invoke-virtual {v0, v5}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    new-instance v5, Lcom/waiqin365/base/db/keyvalue/e;

    const-string/jumbo v6, "_loginPassword"

    invoke-static {v2}, Lcom/waiqin365/base/login/OtherLoginActivity;->g(Lcom/waiqin365/base/login/OtherLoginActivity;)Ljava/lang/String;

    move-result-object v7

    invoke-direct {v5, v6, v7}, Lcom/waiqin365/base/db/keyvalue/e;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    invoke-virtual {v0, v5}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    new-instance v5, Lcom/waiqin365/base/db/keyvalue/e;

    const-string/jumbo v6, "_loginType"

    invoke-static {v2}, Lcom/waiqin365/base/login/OtherLoginActivity;->h(Lcom/waiqin365/base/login/OtherLoginActivity;)Ljava/lang/String;

    move-result-object v7

    invoke-direct {v5, v6, v7}, Lcom/waiqin365/base/db/keyvalue/e;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    invoke-virtual {v0, v5}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    invoke-static {v2, v0}, Lcom/fiberhome/gaea/client/d/a;->a(Landroid/content/Context;Ljava/util/ArrayList;)V

    invoke-static {v2, v4}, Lcom/waiqin365/base/login/OtherLoginActivity;->a(Lcom/waiqin365/base/login/OtherLoginActivity;Lcom/waiqin365/base/login/b/a/ao;)Lcom/waiqin365/base/login/b/a/ao;

    iget-object v0, v4, Lcom/waiqin365/base/login/b/a/ao;->h:Lcom/waiqin365/base/login/c/h;

    iget-object v0, v0, Lcom/waiqin365/base/login/c/h;->b:Ljava/lang/String;

    if-eqz v0, :cond_3

    iget-object v0, v4, Lcom/waiqin365/base/login/b/a/ao;->h:Lcom/waiqin365/base/login/c/h;

    iget-object v0, v0, Lcom/waiqin365/base/login/c/h;->b:Ljava/lang/String;

    const-string/jumbo v5, "http"

    invoke-virtual {v0, v5}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_3

    move v5, v1

    :goto_1
    iget-object v0, v4, Lcom/waiqin365/base/login/b/a/ao;->h:Lcom/waiqin365/base/login/c/h;

    iget-object v0, v0, Lcom/waiqin365/base/login/c/h;->f:Ljava/lang/String;

    if-eqz v0, :cond_4

    iget-object v0, v4, Lcom/waiqin365/base/login/b/a/ao;->h:Lcom/waiqin365/base/login/c/h;

    iget-object v0, v0, Lcom/waiqin365/base/login/c/h;->f:Ljava/lang/String;

    const-string/jumbo v6, "http"

    invoke-virtual {v0, v6}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_4

    move v6, v1

    :goto_2
    if-nez v5, :cond_5

    if-nez v6, :cond_5

    invoke-virtual {v2}, Lcom/waiqin365/base/login/OtherLoginActivity;->dismissProgressDialog()V

    invoke-static {v2}, Lcom/waiqin365/base/login/OtherLoginActivity;->i(Lcom/waiqin365/base/login/OtherLoginActivity;)V

    goto/16 :goto_0

    :cond_3
    move v5, v3

    goto :goto_1

    :cond_4
    move v6, v3

    goto :goto_2

    :cond_5
    invoke-static {}, Lcom/waiqin365/compons/b/b;->a()Lcom/waiqin365/compons/b/b;

    move-result-object v0

    invoke-static {v2}, Lcom/waiqin365/base/login/OtherLoginActivity;->j(Lcom/waiqin365/base/login/OtherLoginActivity;)Lcom/waiqin365/base/login/dq;

    move-result-object v1

    invoke-static {v2}, Lcom/waiqin365/base/login/OtherLoginActivity;->k(Lcom/waiqin365/base/login/OtherLoginActivity;)Lcom/waiqin365/compons/view/a;

    move-result-object v3

    iget-object v4, v4, Lcom/waiqin365/base/login/b/a/ao;->h:Lcom/waiqin365/base/login/c/h;

    invoke-virtual/range {v0 .. v6}, Lcom/waiqin365/compons/b/b;->a(Landroid/os/Handler;Landroid/content/Context;Lcom/waiqin365/compons/view/a;Lcom/waiqin365/base/login/c/h;ZZ)Z

    move-result v0

    if-nez v0, :cond_0

    invoke-static {v2}, Lcom/waiqin365/base/login/OtherLoginActivity;->i(Lcom/waiqin365/base/login/OtherLoginActivity;)V

    goto/16 :goto_0

    :cond_6
    invoke-virtual {v2}, Lcom/waiqin365/base/login/OtherLoginActivity;->dismissProgressDialog()V

    iget v0, v4, Lcom/waiqin365/base/login/b/a/ao;->b:I

    if-lez v0, :cond_7

    invoke-static {v2}, Lcom/waiqin365/base/login/OtherLoginActivity;->a(Lcom/waiqin365/base/login/OtherLoginActivity;)Lcom/waiqin365/compons/view/c;

    move-result-object v1

    invoke-static {v0}, Lcom/waiqin365/base/login/d/g;->a(I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v0}, Lcom/waiqin365/compons/view/c;->a(Ljava/lang/String;)V

    :goto_3
    invoke-static {v2}, Lcom/waiqin365/base/login/OtherLoginActivity;->a(Lcom/waiqin365/base/login/OtherLoginActivity;)Lcom/waiqin365/compons/view/c;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/compons/view/c;->show()V

    goto/16 :goto_0

    :cond_7
    invoke-static {v2}, Lcom/waiqin365/base/login/OtherLoginActivity;->a(Lcom/waiqin365/base/login/OtherLoginActivity;)Lcom/waiqin365/compons/view/c;

    move-result-object v0

    const v1, 0x7f08013b

    invoke-virtual {v2, v1}, Lcom/waiqin365/base/login/OtherLoginActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/compons/view/c;->a(Ljava/lang/String;)V

    goto :goto_3

    :sswitch_1
    invoke-static {v2}, Lcom/waiqin365/base/login/OtherLoginActivity;->i(Lcom/waiqin365/base/login/OtherLoginActivity;)V

    goto/16 :goto_0

    :sswitch_2
    invoke-static {v2}, Lcom/waiqin365/base/login/OtherLoginActivity;->b(Lcom/waiqin365/base/login/OtherLoginActivity;)Landroid/widget/Button;

    move-result-object v0

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setEnabled(Z)V

    goto/16 :goto_0

    :sswitch_data_0
    .sparse-switch
        0x1 -> :sswitch_0
        0x2710 -> :sswitch_1
        0x2715 -> :sswitch_2
    .end sparse-switch
.end method
